 {extends file="profile/layout.tpl"}
 {block name="title"}##NA_OTHER##{/block}
 {block name="script"}
  $(document).ready(function () {
	 $('#fromDate').datepicker({
     showOn: "focus",
       yearRange: "-80:+0",
	   changeMonth: true,
	   changeYear: true,
	   dateFormat: "mm-yy"
    });
	$('#toDate').datepicker({
     showOn: "focus",
       yearRange: "-80:+0",
	   changeMonth: true,
	   changeYear: true,
	   dateFormat: "mm-yy"
    });
	 $('table#social_activities td a.delete').click(function()
    {
        if (confirm("Are you sure you want to delete this row?"))
        {
            var id = $(this).parent().parent().attr('id');
            var data = 'id=' + id ;
            var url = '5.php?'+data+'&action=delete';
			window.location.href = url;
        }
    });
  }
  );
{/block}
{block name="name"}
    ##NG_MORE_INFO##
{/block}
{block name="content"}
   

    <div class="message error" style="display:{$is_display_error|default:'none'};">{$error_message|default:''}</div>
    <div class="clear">
        </div>	
 
	<form id="frm5" name="frm5" action="5.php" method="post"  enctype="multipart/form-data">
    <div class="box round first center">
        <h2>##NG_LANGUAGE##</h2>
        <input type="hidden" name="id" id="id" value="{$id}"/>
        <table class="data display datatable" name="language" id="language">
            <thead>
                <tr class="odd">
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_LANGUAGE##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_READ##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_WRITE##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_SPEAK##
                    </strong></td>
                </tr>
            </thead>
			<tbody>
				<tr class="even">
					<td style="width:25%">
						<strong>##NG_ENGLISH##</strong>
					</td>
					<td style="width:25%">
						<select id="read_en" name="read_en">
							<option value="1" {if $read_en|default:'1'==1}selected{/if}>##NG_LANGUAGE_WEAK##</option>
							<option value="2" {if $read_en|default:'1'==2}selected{/if}>##NG_LANGUAGE_AVERAGE##</option>
							<option value="3" {if $read_en|default:'1'==3}selected{/if}>##NG_LANGUAGE_GOOD##</option>
							<option value="4" {if $read_en|default:'1'==4}selected{/if}>##NG_LANGUAGE_FLUENTLY##</option>
						</select>
					</td>
					<td style="width:25%">
						<select id="write_en" name="write_en">
							<option value="1" {if $write_en|default:'1'==1}selected{/if}>##NG_LANGUAGE_WEAK##</option>
							<option value="2" {if $write_en|default:'1'==2}selected{/if}>##NG_LANGUAGE_AVERAGE##</option>
							<option value="3" {if $write_en|default:'1'==3}selected{/if}>##NG_LANGUAGE_GOOD##</option>
							<option value="4" {if $write_en|default:'1'==4}selected{/if}>##NG_LANGUAGE_FLUENTLY##</option>
						</select>
					</td>
					<td style="width:25%">
						<select id="speak_en" name="speak_en">
							<option value="1" {if $speak_en|default:'1'==1}selected{/if}>##NG_LANGUAGE_WEAK##</option>
							<option value="2" {if $speak_en|default:'1'==2}selected{/if}>##NG_LANGUAGE_AVERAGE##</option>
							<option value="3" {if $speak_en|default:'1'==3}selected{/if}>##NG_LANGUAGE_GOOD##</option>
							<option value="4" {if $speak_en|default:'1'==4}selected{/if}>##NG_LANGUAGE_FLUENTLY##</option>
						</select>
					</td>
				</tr>
				
				<tr class="odd">
					<td style="width:25%">
						<strong>##NG_OTHER_LANGUAGE##</strong>
					</td>
					<td style="width:25%">
						<select id="read_other" name="read_other">
							<option value="1" {if $read_other|default:'1'==1}selected{/if}>##NG_LANGUAGE_WEAK##</option>
							<option value="2"  {if $read_other|default:'1'==2}selected{/if}>##NG_LANGUAGE_AVERAGE##</option>
							<option value="3"  {if $read_other|default:'1'==3}selected{/if}>##NG_LANGUAGE_GOOD##</option>
							<option value="4"  {if $read_other|default:'1'==4}selected{/if}>##NG_LANGUAGE_FLUENTLY##</option>
						</select>
					</td>
					<td style="width:25%">
						<select id="write_other" name="write_other">
							<option value="1" {if $write_other|default:'1'==1}selected{/if}>##NG_LANGUAGE_WEAK##</option>
							<option value="2" {if $write_other|default:'1'==2}selected{/if}>##NG_LANGUAGE_AVERAGE##</option>
							<option value="3" {if $write_other|default:'1'==3}selected{/if}>##NG_LANGUAGE_GOOD##</option>
							<option value="4" {if $write_other|default:'1'==4}selected{/if}>##NG_LANGUAGE_FLUENTLY##</option>
						</select>
					</td>
					<td style="width:25%">
						<select id="speak_other" name="speak_other">
							<option value="1" {if $speak_other|default:'1'==1}selected{/if}>##NG_LANGUAGE_WEAK##</option>
							<option value="2" {if $speak_other|default:'1'==2}selected{/if}>##NG_LANGUAGE_AVERAGE##</option>
							<option value="3" {if $speak_other|default:'1'==3}selected{/if}>##NG_LANGUAGE_GOOD##</option>
							<option value="4" {if $speak_other|default:'1'==4}selected{/if}>##NG_LANGUAGE_FLUENTLY##</option>
						</select>
					</td>
				</tr>
				
				<tr>
					<td colspan="4">
						<strong>##NG_UPLOAD_DEGREE##</strong>
					</td>
				</tr>
				<tr>
					<td align="right">
						<strong>##NG_ENGLISH##</strong>
					</td>
					<td colspan="3">
						{if isset($degree_en_uploaded)}					
						<a href="download.php?url={$degree_en_uploaded}">{$degree_en_uploaded}</a><br>
						{/if}
						<input id="degree_en_upload" type="file" maxlength="255" size="40" name="degree_en_upload"/>
					</td>
				</tr>
				<tr>
					<td align="right">
						<strong>##NG_OTHER_LANGUAGE##</strong>
					</td>
					<td colspan="3">
						{if isset($degree_other_uploaded)}					
						<a href="download.php?url={$degree_other_uploaded}">{$degree_other_uploaded}</a><br>
						{/if}
						<input id="degree_other_upload" type="file" maxlength="255" size="40" name="degree_other_upload"/>
					</td>
				</tr>
				
            </tbody> 
        </table>
    </div>
	
	<div class="box round first center">
        <h2>##NG_SOCIAL_ACTIVITIES## <a href="5_1.php" style>(##NG_UPDATE##)</a></h2>
        <table class="data display datatable" name="social_activities" id="social_activities">
            <thead>
                <tr>
                    <td bgcolor="#FFFFFF"><div align="center"><strong>
                         #
                    </strong></div></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_ACTIVITY_NAME##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_TIME##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_ADDRESS##
                    </strong></td>
					<td bgcolor="#FFFFFF"><strong>
                        ##NG_ROLE##
                    </strong></td>
					<td bgcolor="#FFFFFF"><strong>
                        ##NG_UPLOAD_EVIDENCE##
                    </strong></td>
                    <td bgcolor="#FFFFFF" align="center"></td>
                    <td bgcolor="#FFFFFF" align="center"></td>
                </tr>
            </thead>
            
            <tbody>
            {foreach $social_activities|default:array() as $i}
                        
                {if $i@index is div by 2}
                    <tr class="even" id="{$i.Ma}">
                {else}
                    <tr class="odd" id="{$i.Ma}">
                {/if}
                    <td><div align="center">
                            {$i@index + 1}
                    </div></td>
                    <td>
                        {$i.TenHoatDong}
                    </td>
                    <td>
						{$i.TuNgay|date_format:"%m/%Y"} - {$i.DenNgay|date_format:"%m/%Y"}
                    </td>
                    <td>
                        {$i.DiaChi}
                    </td>
                    <td>
                        {$i.VaiTro}
                    </td>
					<td>
						<a href="download.php?url={$i.GiayChungNhan}">{$i.GiayChungNhan}</a>
                    </td>
                    <td align="center"><a href="5_1.php?id={$i.Ma}&action=edit">##NG_EDIT##</a></td>
                    <td align="center"><a href="" class="delete">##NG_DELETE##</a></td>
                </tr>            
                    
               
            {/foreach}
            </tbody> 
        </table>
    </div>
	<div class="clear">
        </div>
		
		
    <div class="box round first center">
        <h2>##NG_MORE_INFO##</h2>
    
 
    <table class="data display datatable" cellpadding="10" cellspacing="10" 
        align="left" border="2">
        <tbody>
			<tr>
				<td style="vertical-align:middle"><strong>##NG_MORE_INFO##</strong></td>
				<td>
					<table>
						<tr>
							<td>##NG_VIETNAMESE##</td>
							<td>
								<textarea rows="4" cols="50" id="moreinfo_vi" name="moreinfo_vi"></textarea>
							</td>
						</tr>
						<tr>
							<td>##NG_ENGLISH##</td>
							<td>
								<textarea rows="4" cols="50" id="moreinfo_en" name="moreinfo_en"></textarea>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			
			<tr>
				<td>
					<strong>##NG_HEALTH##</strong>
				</td>
				<td>
					<select id="health" name="health">
						<option value="1" {if $health|default:'1' ==1 }selected{/if}>##NG_HEALTH_WEAK##</option>
						<option value="2" {if $health|default:'1'==2}selected{/if}>##NG_HEALTH_AVERAGE##</option>
						<option value="3" {if $health|default:'1'==3}selected{/if}>##NG_HEALTH_GOOD##</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					<strong>##NG_UPLOAD_HEALTH##</strong>
				</td>
				<td>
					{if isset($health_uploaded)}					
					<a href="download.php?url={$health_uploaded}">{$health_uploaded}</a><br>
					{/if}
					<input id="health_upload" type="file" maxlength="255" size="40" name="health_upload"/>
				</td>
			</tr>
			
			<tr>
				<td>
					<strong>##NG_DRL_UPLOAD##</strong>
				</td>
				<td>
					{if isset($drl_uploaded)}					
					<a href="download.php?url={$drl_uploaded}">{$drl_uploaded}</a><br>
					{/if}
					<input id="drl_upload" type="file" maxlength="255" size="40" name="drl_upload"/>
				</td>
			</tr>
<tr>
				<td>
					<strong>##NG_PROFILE_UPLOAD## <br>(link: <a href="{$wwwUrl|default:''}docs/MauSYLL.doc">MauSYLL.doc</a>)</strong>
				</td>
				<td>
					{if isset($profile_uploaded)}					
					<a href="download.php?url={$profile_uploaded}">{$profile_uploaded}</a><br>
					{/if}
					<input id="profile_upload" type="file" maxlength="255" size="40" name="profile_upload"/>
				</td>
			</tr>
						
            <tr>
                <td colspan="2">
                    <div style="float:left; height:auto">
                        <input type="submit" value="##NG_SAVE##" name="save" class="btn btn-blue"/>
                    </div>
                    <div style="float:right; height:auto">
                        <input type="button" value="##NG_NEXT##" name="next" onclick="window.location.href='review_vi.php'" class="btn btn-blue" />
                    </div>
                </td>
            </tr>

        </tbody>
    </table>
    </form>
    </div>
    <div class="clear">
        </div>
{/block}
